package com.example.demo.controller;

import com.example.demo.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author linmaobo
 * @create 2025/7/24
 */
@RequestMapping("/a")
@RestController
public class TestController{
    @Autowired
    private OrderService orderService;
    @GetMapping("/test")
    public Object test(@RequestParam String test) {
        return orderService.getOrder(test);
    }

}

